ListZX81
========

List ZX81 BASIC .P programs in a terminal. Written in Python.

Should work on Python 2 and 3.

Output goes to stdout.

Usage:
listzx81.py file.p [hilite]

If the hilite option is added, terminal escape codes are output as well.

The terminal codes supported are bold (for tokens) and inverse video (for
ZX81 characters with bit 7 set).

It uses Unicode to output certain characters. Two characters that don't
(to the best of my knowledge) have an Unicode equivalent are the upper
half checkerboard and the lower half checkerboard. Those are printed as
{CHKHI} and {CHKLO}.

Uses the ROM's algorithm to determine when to print spaces around tokens.

Written by Pedro Gimeno Fortea on November 2014. Released to the public domain.

Keywords: Lister, Lists BASIC programs, ZX81, P files
